package core.social
{
public interface ISocialService
{
	function initialize():void;
    
    /**
     * 调用购买货币接口 
     * 
     */    
    function addCash():void;
	
	/**
	 * 取到用户的好友列表
	 *  
	 * @param callBack
	 * 
	 */	
	function getFriendList(callBack:Function):void;
	
	/**
	 * 取到当前用户的信息
	 * 
	 * function callBack(data:Object) 
	 *     -> data.first_name,
	 * 		  data.last_name,
	 *        data.pic
	 * 
	 * @param callBack
	 * 
	 */	
	function getSocialUserInfo(socialID:String, callBack:Function):void;
	
	function cancelGetSocialUserInfo(socialID:String, callBack:Function):void;
    
    /**
     * 获取社交网络货币
     *  
     * @param callBack
     * 
     */    
    function getSocialCash(callBack:Function):void;
	
	/**
	 * 使用货币购买物品
	 *  
	 * @param callBack
	 * 
	 */	
	function buyWithCash(callBack:Function, cancelCallBack:Function, ...args):void;
	
	/**
	 * 邀请好友
	 *  
	 * 
	 */	
	function inviteFriend():void;
	
	/**
	 * 发送礼物
	 *  
	 * 
	 */	
	function sendGift(...args):void;
	
	/**
	 * 发送社交网络消息
	 *  
	 * @param args
	 * 
	 */	
	function post(...args):void;
	
	function addGetGiftCallBack(handler:Function):void;
}
}